﻿///<reference path="../../../scripts/jquery-1.4.4.min.js" />
///<reference path="../../../scripts/Treeview/jquery.treeview.js" />

$(document).ready(function () {
    $("#treeView_Categories").find(":checkbox").bind("change", function () {
        var newValue = $(this).attr("checked");
        if (newValue) {
            var id = $(this).attr("id");
            $("#treeView_Categories").find(":checkbox").each(function (index, obj) {
                if ($(obj).attr("id") != id) {
                    $(obj).removeAttr("checked");
                }
            });
        }
    });
});